package com.zzptc.sky.fengzhengmin;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import java.util.Timer;
import java.util.TimerTask;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        final Intent intent = new Intent(this, HuanyinActivity.class);

        Timer timer = new Timer();

        TimerTask task = new TimerTask() {

            @Override
            public void run() {
                startActivity(intent); //执行
            }

        };

        timer.schedule(task, 1000 * 3); //3秒后

    }
}
